package com.k2data.k2app.controller.vo;

/**
 * @Author cuilibo@k2data.com.cn
 * @Date 18-5-14 下午6:38.
 */

import lombok.Data;

import java.util.Map;

/**
 * 任务和作业关联表
 */
@Data
public class EarlyWaringVO {


    /**
     * 告警等级，健康状况
     */
    private String level;

    private Integer count ;

    private String color;

    public EarlyWaringVO(String level, Integer count,Map<String,String> ext){
        this.level = level;
        this.count = count;
        if(ext != null){
            for(Map.Entry<String,String> entry: ext.entrySet()){
                if(entry.getKey().equals("color")){
                    this.color = entry.getValue();
                }

            }
        }
    }
}